package com.cade.agriculturemall.model;

import com.avos.avoscloud.AVClassName;
import com.avos.avoscloud.AVObject;

/**
 * 用户购物车表
 * Created by Lobby on 2017/12/12.
 */
@AVClassName("ShoppingCars")
public class ShoppingCarsEntity extends AVObject {
//    private String userId;
//    private String proId;
//    private String price;
//    private Integer quantitate; //订购数量

    private boolean isedit;
    private boolean selected;

    public boolean isedit() {
        return isedit;
    }

    public void setIsedit(boolean isedit) {
        this.isedit = isedit;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    public boolean isSelected() {
        return selected;
    }

    public String getUserId() {
        return getString("user_Id");
    }

    public void setUserId(String userId) {
        put("user_Id", userId);
    }

    public GoodsDetailEntity getProId() {
        return (GoodsDetailEntity) get("pro");
    }

    public void setProId(GoodsDetailEntity proId) {
        put("pro", proId);

    }

    public String getPrice() {
        return getString("pro_price");
    }

    public void setPrice(String price) {
        put("pro_price", price);
    }

    public Integer getQuantitate() {
        return getInt("quantitate");
    }

    public void setQuantitate(Integer quantitate) {
        put("quantitate", quantitate);
    }

    public String getShoper() {
        return getString("shop_Id");
    }

    public void setShoper(String shoper) {
        put("shop_Id", shoper);
    }

    public void setShoperLongName(String shoperLongName){
        put("shop_long_name",shoperLongName);
    }
    public String getShoperLongName(){
     return getString("shop_long_name");
    }
    public  void setOrderNo(OrderEntity orderNo){
        put("orderId",orderNo);
    }
    public OrderEntity getOrderNo(){
        return (OrderEntity)get("orderId");
    }
}
